package com.tengju.bff.interfaces.covercharge.entity.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhaoyi
 * @since 2020-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("w_service_custom_detail")
public class ServiceCustomDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 代理编号
     */
    @TableField("id_code")
    private Integer idCode;

    /**
     * 收益支出类型
     */
    @TableField("profit_type")
    private Integer profitType;

    /**
     * 金额
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 可用余额
     */
    @TableField("balance")
    private BigDecimal balance;

    /**
     * 冻结金额
     */
    @TableField("freeze_balance")
    private BigDecimal freezeBalance;

    /**
     * 收益支出描述
     */
    @TableField("des")
    private String des;

    /**
     * 关联的表id
     */
    @TableField("table_id")
    private Integer tableId;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;

    /**
     * 会员订单Id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 会员退款Id
     */
    @TableField("return_id")
    private Long returnId;

    /**
     * 会员商品Id
     */
    @TableField("goods_id")
    private Long goodsId;

}
